import './AddCustomer.less'
import React, { Component, PropTypes } from 'react'
import { connect } from 'react-redux'
import Immutable from 'Immutable'
import pureRender from "pure-render-decorator"
import Customer from '../components/Customer'
import {fetchCitysIfNeed} from '../../../actions'
import DefaultSelect from "../../../components/DefaultSelect"




@connect((state)=>({
  city:state.get("city")
}))
export default class  extends Component {
  constructor(props){
    super(props)
  }
  componentDidMount(){
    const {dispatch} =this.props;
    dispatch(fetchCitysIfNeed())
    this._handleChange=this._handleChange.bind(this)

  }


  render() {
    const citys = this.props.city.get("citys")
    console.log(222,citys);

    return (
      <div className="add-customer">

        <DefaultSelect options={citys}></DefaultSelect>


        <footer>
          确认
        </footer>

      </div>
    )
  }
  _handleChange(){

  }


}
